/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const financeRouter = {
  path: '/finance',
  component: Layout,
  redirect: 'noRedirect',
  name: 'financeDemo',
  meta: {
    title: '财务管理',
    icon: 'component'
  },
  children: [
    {
      path: 'orderlist',
      component: () => import('@/views/finance/orderlist'),
      name: 'orderlist',
      meta: {
        title: '审核记录'
      }
    },
    {
      path: 'customerpayment/:order_id',
      component: () => import('@/views/finance/customerPayment'),
      name: 'customerpayment',
      meta: {
        title: '付款计划'
      }
    }, {
      path: 'day',
      component: () => import('@/views/finance/day'),
      name: 'financeIndex',
      meta: {
        title: '日记账'
      }
    }, {
      path: 'receivable',
      component: () => import('@/views/finance/receivable'),
      name: 'financeReceivable ',
      meta: {
        title: '应收管理'
      }
    }, {
      path: 'hand',
      component: () => import('@/views/finance/hand'),
      name: 'financeHand',
      meta: {
        title: '首次应付'
      }
    },

    {
      path: 'fen',
      component: () => import('@/views/finance/fen'),
      name: 'financeFen',
      meta: {
        title: '分期应付'
      }
    },

    {
      path: 'detail/:unix_date',
      component: () => import('@/views/finance/detail'),
      name: 'financeDetail',
      meta: {
        title: '详情'
      },
      hidden: true
    },
    {
      path: 'fenlist/:day/:merchant_id',
      component: () => import('@/views/finance/list'),
      name: 'fenlist',
      meta: {
        title: '详情'
      }
    }
  ]
}

export default financeRouter
